// 同步所有模型
require('./index/Admin')
require('./index/User')
require('./index/Article')
require('./index/ArticleColumn')
require('./index/ViewsEcharts')

require('./index/Comment')

const sequelize = require('./db')

sequelize
  .sync({ alter: true })
  .then(() => {
    console.log('所有模型同步完成')
  })
  .catch((err) => {
    console.log('同步错误')
    console.log(err)
  })
